/*******************************************************************************
 * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
 * @file     popupBox.h
 * @author   UartTFT Application Team
 * @version  V0.0.1
 * @date     2023-01-11
 * @brief    This file provides UartTFT Application display function
 ********************************************************************************/

#ifndef POPUPBOX_H_
#define POPUPBOX_H_

#include "data.h"

/***********popup window*****/
typedef struct
{
	uint16_t Code; // Function code
	uint8_t len;   // lenght
	uint16_t Xs;   // Upper left corner coordinate
	uint16_t Ys;
	uint16_t Xe; // Lower right corner coordinate
	uint16_t Ye;
	uint16_t Keyvalue; // Key value
	uint16_t id;	   // icon picture id
	uint16_t press_id;
	uint16_t pop_up_id;
	uint16_t pop_up_x;
	uint16_t pop_up_y;
	uint8_t function;

} Pop_up_Info;

extern Pop_up_Info gPop_up_Info[POPUP_SIZE];
extern uint8_t Pop_up_count;
extern uint8_t Pop_up_flag;
extern uint8_t Pop_up_num;
extern uint8_t Pop_up_press;
extern uint16_t Pop_up_x;
extern uint16_t Pop_up_y;
extern uint16_t Pop_up_id;
/************************/

extern void pop_up_touch(void);

#endif /* POPUPBOX_H_ */
